Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/3850 link editor groups by name #2380

Open
wants to merge 71 commits into
base: develop
Choose a base branch
from

Conversation

philipkcl
Copy link
Contributor

@philipkcl philipkcl commented May 13, 2024

[3850] Referential integrity between apps/journals and editor groups is by group name, should be by id

Please don't delete any sections when completing this PR template; instead enter N/A for checkboxes or sections which are not applicable, unless otherwise stated below

See #

Describe the scope/purpose of the PR here in as much detail as you like

Categorisation

This PR...

  • has scripts to run
  • has migrations to run
  • adds new infrastructure
  • changes the CI pipeline
  • affects the public site
  • affects the editorial area
  • affects the publisher area
  • affects the monitoring

Basic PR Checklist

Instructions for developers:

  • For each checklist item, if it is N/A to your PR check the N/A box
  • For each item that you have done and confirmed for yourself, check Developer box (including if you have checked the N/A box)

Instructions for reviewers:

  • For each checklist item that has been confirmed by the Developer, check the Reviewer box if you agree
  • For multiple reviewers, feel free to add your own checkbox with your github username next to it if that helps with review tracking

Code Style

  • No deprecated methods are used

    • N/A
    • Developer
    • Reviewer
  • No magic strings/numbers - all strings are in constants or messages files

    • N/A
    • Developer
    • Reviewer
  • ES queries are wrapped in a Query object rather than inlined in the code

    • N/A
    • Developer
    • Reviewer
  • Where possible our common library functions have been used (e.g. dates manipulated via dates)

    • N/A
    • Developer
    • Reviewer
  • Cleaned up commented out code, etc

    • N/A
    • Developer
    • Reviewer
  • Urls are constructed with url_for not hard-coded

    • N/A
    • Developer
    • Reviewer

Testing

  • Unit tests have been added/modified

    • N/A
    • Developer
    • Reviewer
  • Functional tests have been added/modified

    • N/A
    • Developer
    • Reviewer
  • Code has been run manually in development, and functional tests followed locally

    • N/A
    • Developer
    • Reviewer
  • Have CSS/style changes been implemented? If they are of a global scope (e.g. on base HTML elements) have the downstream impacts of the change in other areas of the system been considered?

    • N/A
    • Developer
    • Reviewer

Documentation

Release Readiness

Testing

List the Functional Tests that must be run to confirm this feature

  1. ...
  2. ...

Deployment

What deployment considerations are there? (delete any sections you don't need)

Configuration changes

What configuration changes are included in this PR, and do we need to set specific values for production

Scripts

What scripts need to be run from the PR (e.g. if this is a report generating feature), and when (once, regularly, etc).

Migrations

What migrations need to be run to deploy this

  • python portality/upgrade.py -u portality/migrate/3850_link_editor_groups_by_name/migrate.json

Monitoring

What additional monitoring is required of the application as a result of this feature

New Infrastructure

What new infrastructure does this PR require (e.g. new services that need to run on the back-end).

Continuous Integration

What CI changes are required for this

@philipkcl
Copy link
Contributor Author

@RK206 , thanks for let me know, I have fixed the first bugs,
but EditorGroup search not working that would be make sense since document no longer contain the name of editor group.

any technical recommendation for implement this features or should we just ignore that feature ?

@RK206
Copy link
Contributor

RK206 commented Jul 1, 2024

@philipkcl looks like bug still exist in some other form. The editor group is showing the id again. Editor group is not shown for Applications

Screenshot 2024-07-01 at 10 16 03 AM
Screenshot 2024-07-01 at 10 16 45 AM

Regarding EditorGroup search not working, I believe it should work once this editor group is fixed.

@philipkcl
Copy link
Contributor Author

check is that id of editor group exist in DB? it will show as id if real name not found.

@richard-jones, @Steven-Eardley, about EditorGroup search not working, any technical recommendation for implement this features or should we just ignore that feature ?

@RK206
Copy link
Contributor

RK206 commented Jul 1, 2024

Sorry @philipkcl I was on wrong branch. Its looks alright with Editor group names. Need to discuss on search.

@RK206
Copy link
Contributor

RK206 commented Jul 22, 2024

@philipkcl This is all working after re-indexing. You need to add a migration file for re-indexing using portality/scripts/es_reindex.py to migrate in production.
Please see 3575_make_notes_searchable in portality/migrate/ for reference.
As there is a migrate.json file already in 3850_link_editor_groups_by_name, you may save with another name or you may create another directory for migration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants